package StaticProxy;

/**
 * @author ：MJS
 * @date ：Created in 2021/6/1  21:11
 * @description：TODO
 */
public class BuyHouseProxy implements BuyHouse{
    private BuyHouse buyHouse;

    public BuyHouseProxy(BuyHouse buyHouse) {
        this.buyHouse = buyHouse;
    }

    public void buyHouse() {
        System.out.println("买房之前的准备");
        buyHouse.buyHouse();
        System.out.println("买房之后的准备");
    }
}
